package com.wxsong.test.nacos.controller.user;

import com.alibaba.fastjson.JSONArray;
import com.wxsong.test.nacos.service.user.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * 描述：
 *
 * @Author songweixing
 * @Date 2019/12/31
 */
@Controller
@RequestMapping("/user")
public class UserController {

    @Resource
    UserService userService;

    @RequestMapping("/list")
    @ResponseBody
    public Object userList(){
        JSONArray userList = userService.userList();
        return userList;
    }


}
